package com.mccrea.pattern.facade;

/**
 * @Classname DVDPlayer
 * @Description DVD
 * @Date 2021/5/11 0011 15:03
 * @Created by Mccrea_Gao
 */
public class DVDPlayer {
    private DVDPlayer() {

    }
    private static final DVDPlayer INSTANCE = new DVDPlayer();

    public static DVDPlayer getInstance() {
        return INSTANCE;
    }

    public void on() {
        System.out.println("DVD打开");
    }

    public void off() {
        System.out.println("DVD关闭");
    }

    public void play() {
        System.out.println("DVD播放中");
    }

    public void pause() {
        System.out.println("DVD暂停");
    }
}
